package at.ac.univie.bi.transformation.service.output;

import at.ac.univie.bi.transformation.model.output.AbstractOutputEntity;
import at.ac.univie.bi.transformation.persistence.DBHandler;

public abstract class AbstractOutputEntityService {
	private DBHandler newDb;
	
	public AbstractOutputEntityService(){
		setNewDb(DBHandler.getInstance());
	}
	
	public abstract int save(AbstractOutputEntity element);

	
	public DBHandler getNewDb() {
		return newDb;
	}

	public void setNewDb(DBHandler newDb) {
		this.newDb = newDb;
	}
}
